import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('DataToUiEvent')
export class DataToUiEvent {
    public detail:any = null;
    public name:string;
    public data:any = null;
    //构造时传入事件名与是否冒泡参数,最后一个参数是事件附加信息
    constructor(name:string, data?:any, detail?:any){
        //
        this.name = name
        this.data = data;
        this.detail = detail;
    }
}

